package com.db.common.config;

import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.db.common.web.TimeAccessInterceptor;

public class SpringWebConfig implements WebMvcConfigurer{//web.xml

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new TimeAccessInterceptor())
		.addPathPatterns("/user/doLogin");
	}
}
